package com.cnblog.blog.common;

public class CONST {
	// bolgger
	private static String BLOGGERS_RECOMMEND_PAGE_URL = "http://wcf.open.cnblogs.com/blog/bloggers/recommend/";
	private static String BLOGGERS_RECOMMEND_COUNT_URL = "http://wcf.open.cnblogs.com/blog/bloggers/recommend/count";
	private static String BLOGGERS_RECOMMEND_SEARCH_URL = "http://wcf.open.cnblogs.com/blog/bloggers/search";
	private static String HOURSTOPVIEWPOSTS_URL = "http://wcf.open.cnblogs.com/blog/48HoursTopViewPosts";
	private static String BLOGGERS_ONERECOMMEND_LIST_URL = "http://wcf.open.cnblogs.com/blog/post/";
	private static String BLOGGER_BODY_URL = "http://wcf.open.cnblogs.com/blog/post/body/";
	private static String SITEHOME_RECENT_URL = "http://wcf.open.cnblogs.com/blog/sitehome/recent/";
	private static String TENDAYSYOPDIGGPOSTS_URL = "http://wcf.open.cnblogs.com/blog/TenDaysTopDiggPosts/";
	private static String BLOGGERSINGLE_URL = "http://wcf.open.cnblogs.com/blog/u/";
	private static String SITEHOME_PAGED_URL = "http://wcf.open.cnblogs.com/blog/sitehome/paged/";
	// news
	private static String NEWS_HOT_URL = "http://wcf.open.cnblogs.com/news/hot/";
	private static String NEWS_ITEM_URL = "http://wcf.open.cnblogs.com/news/item/";
	private static String NEWS_ITEMCOMMENTS_URL = "http://wcf.open.cnblogs.com/news/item/";
	private static String NEWS_RECENT_URL = "http://wcf.open.cnblogs.com/news/recent/";
	private static String NEWS_RECENT_PAGED_URL = "http://wcf.open.cnblogs.com/news/recent/paged/";
	private static String NEWS_RECOMMEND_URL = "http://wcf.open.cnblogs.com/news/recommend/paged/";

	public static String getBloggersRecommendPageURL(int pageIndex, int pageSize) {
		return BLOGGERS_RECOMMEND_PAGE_URL + pageIndex + "/" + pageSize;
	}

	public static String getBloggersRecommendCountURL() {
		return BLOGGERS_RECOMMEND_COUNT_URL;
	}

	public static String getBloggersSearchURL(String t) {
		return BLOGGERS_RECOMMEND_SEARCH_URL + "?t=" + t;
	}

	public static String get48HoursTopViewPosts(int itemCount) {
		return HOURSTOPVIEWPOSTS_URL + "/" + itemCount;
	}

	public static String getCommends(int postId, int pageIndex, int pageSize) {
		return BLOGGERS_ONERECOMMEND_LIST_URL + postId + "/comments/"
				+ pageIndex + "/" + pageSize;
	}

	public static String getBloggerBodyURL(int postId) {
		return BLOGGER_BODY_URL + postId;
	}

	public static String getSiteHomeRecent(int itemCount) {
		return SITEHOME_RECENT_URL + itemCount;
	}

	public static String getTenDaysTopDiggPosts(int itemCount) {
		return TENDAYSYOPDIGGPOSTS_URL + itemCount;
	}

	public static String getBloggerSingleURL(String bloggerApp, int pageIndex,
			int pageSize) {
		return BLOGGERSINGLE_URL + bloggerApp + "/posts/" + pageIndex + "/"
				+ pageSize;
	}

	public static String getSITEHOME_PAGED_URL(int pageIndex, int pageSize) {
		return SITEHOME_PAGED_URL + pageIndex + "/" + pageSize;
	}

	public static String getNEWS_HOT_URL(int itemCount) {
		return NEWS_HOT_URL + itemCount;
	}

	public static String getNEWS_ITEM_URL(int contentId) {
		return NEWS_ITEM_URL + contentId;
	}

	public static String getNEWS_ITEMCOMMENTS_URL(int contentId, int pageIndex,
			int pageSize) {
		return NEWS_ITEMCOMMENTS_URL + contentId + "/comments/" + pageIndex
				+ "/" + pageSize;
	}

	public static String getNEWS_RECENT_URL(int itemCount) {
		return NEWS_RECENT_URL + itemCount;
	}

	public static String getNEWS_RECENT_PAGED_URL(int pageIndex, int pageSize) {
		return NEWS_RECENT_PAGED_URL + pageIndex + "/" + pageSize;
	}

	public static String getNEWS_RECOMMEND_URL(int pageIndex, int pageSize) {
		return NEWS_RECOMMEND_URL + pageIndex + "/" + pageSize;
	}
}
